package com.common.utils;

import android.os.Environment;
import com.common.utils.file.FileUtils;
import java.io.File;

/**
 * [description about this class]
 * 整个apk静态变量的设置
 * @author jack
 */

public class Constants {


    // APP_ID 替换为你的应用从官方网站申请到的合法appId
    public static final String APP_ID = "wx393e716622830872";


    //=============================缓存数据=================================
    public static int CACHE_SIZE = 10 * 1024 * 1024;//10MB
    //=============================文件操作相关==============================

    /**
     * 整个应用程序文件夹创建的根目录位置(直接暴露在手机目录下,用户很容易可见)
     */
    public static String ROOT_FILE_PATH = Environment.getExternalStorageDirectory().getPath() + File.separator +
            ApkUtils.getInstance().getApkName();
    /**
     * 整个应用程序文件夹创建的缓存根目录位置(直接暴露在手机目录下,用户不易可见)
     * /storage/emulated/0/Android/data/包名/cache/包名
     */
    public static String CACHE_ROOT_FILE_PATH = ApkUtils.getInstance().getDiskCacheDirPath() + File.separator +
            ApkUtils.getInstance().getApkPackageName();

    //图片的根目录
    public static String DEFAULT_PHOTO_IMAGE_DIR = FileUtils.getInstance().getRootDirectory() + File.separator + "photo_image_pinban";

    //=============================网络相关==============================
    /***
     * HTTP头部写的token的值
     */
    public static final String TOKEN = "X-Token";
    private static final int readTimeOut = 30;//数据读取超时时间，默认为30s
    private static final int writeTimeOut = 30; //写超时时间，默认为15s
    private static final int connectTimeOut = 25; //连接超时时间，默认为25s

    //=============================项目配置=================================
    /***
     * http请求中添加的header key
     */
    public static final String SESSION_ID = "sessionId";
    /**
     * HTTP header中的cookie值KEY
     */
    public static final String COOKIE = "cookie";
    /***
     * http请求中添加的header key
     */
    public static final String USER_AGENT_KEY = "user-agent";
    /***
     * HTTP头部写的user_agent的值
     */
    public static final String USER_AGENT_VALUE = "UA_HKWY";
    /**
     * HTTP header中的cookie值VALUE的前缀
     */
    public static final String SID = "sid=";
    /***
     * http请求中添加的header key
     */
    public static final String USER_ID = "userId";

    /***
     * 字符串使用到的分隔符
     */
    public static final String SPLIT = "~";

    /**
     * 框架基本常量设置
     */
    public static final int NO_NET_NUMBER = -1000;
    public static final int DEFAULT_NUMBER = 10;
   /* public static String IP_PORT_DEFAULT = "https://www.iumer.net";
    public static String BASE_API_URL = IP_PORT_DEFAULT +"/ymhy/webService/shop";
    public static String IP_PORT_DEFAULT_PICTURE = "https://www.iumer.net";
    public static String BASE_API_COMMON_URL = "https://www.iumer.net/ymhy/webService/common";*/
    public static String BASE_API_URL = "https://192.168.0.32:8080/ymhy/webService/shop";
    public static String BASE_API_COMMON_URL = "https://192.168.0.32:8080/ymhy/webService/common";
    public static String IP_PORT_DEFAULT_PICTURE = "http://192.168.0.32:8081";

    /**
     * 本地存储数据
     */
    public static String xiaofei = "xiaofei";
    public static String xiaohao = "xiaohao";
    public static String xiaohaorecord = "xiaohaorecord";
    public static String authPhone = BASE_API_COMMON_URL + "/authPhone";

    public static String USER_LOGIN = BASE_API_URL + "/biz/user/login";
    public static String selectMemberList = BASE_API_URL + "/biz/member/selectMemberList";
    public static String submitBuyMember = BASE_API_URL + "/biz/member/submitBuyMember";
    public static String selectBuyMember = BASE_API_URL + "/biz/member/selectBuyMember";
    public static String selectMemberRecordList = BASE_API_URL + "/biz/member/selectMemberRecordList";
    public static String exchangeMember = BASE_API_URL + "/biz/member/exchangeMember";
    public static String updateShopHidePhoneStatus = BASE_API_URL + "/biz/user/updateShopHidePhoneStatus";
    public static String updateShopInfo = BASE_API_URL + "/biz/user/updateShopInfo";
    public static String selectShopInfo = BASE_API_URL + "/biz/user/selectShopInfo";
    public static String updatePassword = BASE_API_URL + "/biz/user/updatePassword";
    public static String personnelList = BASE_API_URL + "/biz/user/personnelList";
    public static String addCustomer = BASE_API_URL + "/biz/customer/addCustomer";
    public static String selectCustomerList = BASE_API_URL + "/biz/customer/selectCustomerList";
    public static String customerXiaoFeiRecordList = BASE_API_URL + "/biz/order/selectExpenseOrderList";
    public static String remindList = BASE_API_URL + "/biz/customer/remindList";
    public static String deleteCustomerRemind = BASE_API_URL + "/biz/customer/deleteCustomerRemind";
    public static String editCustomerRemind = BASE_API_URL + "/biz/customer/editCustomerRemind";
    public static String customerTailRecordList = BASE_API_URL + "/biz/customer/customerTailRecordList";
    public static String customerMenstrualSet = BASE_API_URL + "/biz/customer/customerMenstrualSet";
    public static String selectCustomerInfo = BASE_API_URL + "/biz/customer/selectCustomerInfo";
    public static String customerTypeList = BASE_API_URL + "/biz/customer/customerTypeList";
    public static String selectPersonnelCustomerTailList = BASE_API_URL + "/biz/shopdata/selectPersonnelCustomerTailList";
    public static String dataDictionary = BASE_API_COMMON_URL + "/dataDictionary";
    public static String payMode = BASE_API_COMMON_URL + "/payMode";
    public static String scanCustomerProjectList = BASE_API_URL + "/biz/customer/scanCustomerProjectList";
    public static String selectCommodityList = BASE_API_URL + "/biz/commodity/selectCommodityList";


    public static String dataAnalyze = BASE_API_URL + "/biz/shopdata/v2/dataAnalyze";

}